import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.itmayiedu.entity.UserEntity;
import com.itmayiedu02.service.UserService;

/**
 * 测试ioc、手动事务对每个方法单个手动事务
 * @author zhang
 *
 */
public class SpringTest001 {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("db.xml");
		UserService userService = (UserService) app.getBean("userService");
		userService.add();
	}

}
